<?php 
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
header('Content-type: text/xml'); 
?>

<highscore>
	
	<?php
		$count = $firstPlace;
	
		if($result!=null){ 
		foreach($result as $row):

		$count++; ?>

	<user count="<?php echo $count; ?>" name="<?php echo $row->Naam; ?>" score="<?php echo $row->Score; ?>" />
	
	<?php endforeach; } ?>

</highscore>
